package com.business.service.interfaced.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.business.service.interfaced.BusinessInManager;
import com.system.dao.DaoSupport;
import com.system.util.PageData;
/**
 * 商家接口
 * @Function 
 * @Author zhaozhenhua
 * @Date 2018年2月27日
 */
@Service("businessInService")
public class BusinessInService implements BusinessInManager{
	
	@Resource(name="daoSupport")
	private DaoSupport dao;

	/**
	 * 获取店铺的LOGO
	 */
	@Override
	public PageData getBusinessLogo(PageData pd) throws Exception {
		return (PageData)dao.findForObject("BusinessInMapper.getBusinessLogo", pd);
	}

	/**
	 * 后台根据商家id获取店铺信息
	 */
	@Override
	public PageData getBusinessInfo(PageData pd) throws Exception {
		return (PageData)dao.findForObject("BusinessInMapper.getBusinessInfo", pd);
	}

	/**
	 * 后台获取电商商铺首页的宣传图和它关联的商品
	 */
	@Override
	public PageData getBusiADImgById(PageData pd) throws Exception {
		return (PageData)dao.findForObject("BusinessInMapper.getBusiADImgById", pd);
	}

}
